Skip to content

Keep branch start auto-transfer alive under pipefail#397

Merged
NagyVikt merged 1 commit intomainfrom
agent/codex/fix-branch-start-pipefail-stash-lookup-2026-04-23-20-01
Apr 23, 2026
Merged

Keep branch start auto-transfer alive under pipefail#397
NagyVikt merged 1 commit intomainfrom
agent/codex/fix-branch-start-pipefail-stash-lookup-2026-04-23-20-01

Conversation

@NagyVikt
Copy link
Copy Markdown
Collaborator

Automated by gx branch finish (PR flow).

The protected-branch auto-transfer path used \, which can trip \ when \ exits after finding the matching stash message. That leaves the stash ref lookup fragile during \.

Use a helper that reads the stash list once and resolves the matching ref without a pipeline, then mirror it across the installed, template, and frontend copies. Add focused regression coverage for the installed script path.

Constraint: Shipped branch-start script copies must stay behavior-identical across installed, template, and frontend surfaces
Rejected: Disable pipefail for the stash lookup | would hide real bootstrap failures on protected branches
Confidence: high
Scope-risk: narrow
Reversibility: clean
Directive: Keep stash-ref lookup shared and pipeline-free across all branch-start copies
Tested: node --test test/branch.test.js; git diff --check
Not-tested: Full gx branch finish/PR flow against GitHub
@NagyVikt NagyVikt merged commit f019e27 into main Apr 23, 2026
2 of 5 checks passed
@NagyVikt NagyVikt deleted the agent/codex/fix-branch-start-pipefail-stash-lookup-2026-04-23-20-01 branch April 23, 2026 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant